home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Aminet 28
/
Aminet 28 (1998)(GTI - Schatztruhe)[!][Dec 1998].iso
/
Aminet
/
util
/
shell
/
ViNCEd.lha
/
ViNCEd
/
Include
/
vnc
/
prefs.h
< prev
next >
Wrap
C/C++ Source or Header
|
1998-08-22
|
13KB
|
382 lines
#ifndef VNC_PREFS_H
#define VNC_PREFS_H
/*********************************************************
** ViNCEd **
** a DOS - window handler **
** **
** © 1991-98 THOR-Software inc. **
** Version 3.60 **
** **
** program version 3.60 21 Aug 1998 THOR **
** **
** ViNCEd Prefs Definitions **
**-----------------------------------------------------**
** **
** all use at your own risk,etc.,etc. **
** **
** Everything declared as "reserved" or **
** "not used" is NOT free for your use, **
** it will propably used in a later release. **
** All FREE entries are free for public **
** use and are, if not otherwise noticed, **
** initialized as ZERO **
*********************************************************/
#ifndef EXEC_TYPES_H
#include <exec/types.h>
#endif
#ifndef VNC_KEYBOARD_H
#include <vnc/keyboard.h>
#endif
/*************************************************
** VNCPrefs **
** contains the preferences of **
** all VNC-windows **
*************************************************/
#define VPF_HEADERLONG 0x70004e75 /* moveq #0,d0:rts */
#define VPF_MAGIC1 (('V'<<24L)|('N'<<16L)|('C'<<8L)|('©'))
#define VPF_MAGIC2 (('T'<<24L)|('H'<<16L)|('O'<<8L)|('R'))
#define VPF_PREFVERSION 3
#define VPF_PREFREVISION 3
/* current version information */
#define VPF_MAXBUTTONS 16
/* maximal number of buttons here */
#define VPF_MACROS 24
/* current number of macros. DO NOT DEPEND ON THIS NUMBER !
read the number of available macros from the structures
below. */
#define VPF_FUNCLENGTH 126
/* maximal size of a macro */
#define VPF_SHORTLENGTH 16
/* maximal size of a button title */
#define VPF_MACROLENGHT 32
/* maximal size of a macro shortcut. This is only used internally.
The display is cut down to this size, and an ellipsis is appended
if oversized. */
struct ViColorEntry {
UWORD vce_Flags; /* color entry flags, see below */
UWORD vce_Red,vce_Green,vce_Blue; /* 16 bit color */
};
#define VCE_SET_BIT 0
/*set this to allocate the color */
#define VCE_SET_MASK (1L<<0)
#define VCE_ANSI_BIT 1
/*set if this defines an ANSI pen */
#define VCE_ANSI_MASK (1L<<1)
/* Keeps the TAB settings for one TAB expansion function */
struct ViTabPriors {
BYTE vtp_PathPri; /* priority for ordinary files in the path */
BYTE vtp_CommandPri; /* priority for commands in C: */
BYTE vtp_ResidentPri;/* priority for resident commands */
BYTE vtp_InfoPri; /* priority for icons */
BYTE vtp_DevicePri; /* priority for devices */
BYTE vtp_AssignPri; /* priority for assigns */
BYTE vtp_VolumePri; /* priority for volumes */
BYTE vtp_DirPri; /* priority for directories */
BYTE vtp_FilePri; /* priority for ordinary files */
BYTE vtp_ExecPri; /* priority for executables */
BYTE vtp_ScriptPri; /* priority for scipts */
UBYTE vtp_ExpandFlgs; /* flags, see below */
};
/* Enable doube TAB requester? */
#define VTPF_DOUBLETAB_BIT 0
#define VTPF_DOUBLETAB_MASK (1L<<0)
/* Enable first TAB expands fully? */
#define VTPF_FULLFIRSTTAB_BIT 1
#define VTPF_FULLFIRSTTAB_MASK (1L<<1)
/* Enable add VNC matches to requester? */
#define VTPF_FOUNDREQ_BIT 2
#define VTPF_FOUNDREQ_MASK (1L<<2)
/* Enable request if ambigous? */
#define VTPF_AMBIGREQ_BIT 3
#define VTPF_AMBIGREQ_MASK (1L<<3)
struct VNCPrefs {
ULONG vpf_Header; /* should contain HEADERLONG */
ULONG vpf_Magic1; /* MUST contain MAGIC1 to be legal preferences */
ULONG vpf_Magic2; /* MUST contain MAGIC2 */
UWORD vpf_Version; /* version and... */
UWORD vpf_Revision; /* revision of THIS structure, now 3.2 */
ULONG vpf_Flags; /* bit settings, see below for definition */
ULONG vpf_FMask; /* valid bits above */
ULONG vpf_DOSFlags; /* more bit settings */
ULONG vpf_DOSFMask; /* valid bits */
UWORD vpf_HistorySize; /* # lines in the history */
UWORD vpf_Macros; /* number of macro-strings defined here.
NEED NOT to be VPF_MACROS! */
RPTR vpf_MacroOffset; /* offset of the macro-strings to the
start-address of this structure,
the strings are saved as NUL-
terminated strings */
UWORD vpf_MacroSize; /* max. length or macros: VPF_FUNCLENGTH */
/* The next ones are new to 2.00 */
UWORD vpf_UpperLines; /* upper display size */
UWORD vpf_LowerLines; /* lower display size */
/* New to 3.00 */
ULONG vpf_DelayMicros; /* intuition delay micros,
320000 by default */
ULONG vpf_RebuildMicros;/* rebuild delay */
ULONG vpf_SlowMicros; /* scroll threshold */
ULONG vpf_BlinkMicros; /* blink speed */
RPTR vpf_ButtonOffset; /* offset to button strings,
NUL terminated strings, name and
title alternating */
UWORD vpf_Buttons; /* # of buttons */
UWORD vpf_ButtonSize; /* VPF_SHORTLENGTH */
/* New to 3.30 */
ULONG vpf_DefModeID; /* default mode ID */
UWORD vpf_PathOnlyQ; /* path only icon drop modifier */
UWORD vpf_NameOnlyQ; /* name only icon drop modifier */
ULONG vpf_MoreFlags; /* used since 3.40, see below */
ULONG vpf_MoreFMask; /* mask for the field above. Now used */
ULONG vpf_Reserved[2]; /* leave blank */
struct ViColorEntry vpf_CursorColor; /* the cursor color */
struct ViColorEntry vpf_Colors[16]; /* color definitions */
/* 3.60 expansions start here */
UWORD vpf_TABExpMask; /* mask of valid bits in vtp_ExpandFlgs */
struct ViTabPriors vpf_TABPriors; /* Expand Path */
struct ViTabPriors vpf_SrtPriors; /* Expand Short */
struct ViTabPriors vpf_DevPriors; /* Expand Devs */
struct ViTabPriors vpf_DirPriors; /* Expand Dirs */
struct ViTabPriors vpf_InfPriors; /* Expand Icons */
struct ViTabPriors vpf_AltPriors; /* Expand Alt */
UWORD vpf_CacheLines; /* size of the cache */
WORD vpf_ReqLeft; /* requester position */
WORD vpf_ReqTop; /* default is -1,-1 */
UWORD vpf_ReqWidth; /* requester size */
UWORD vpf_ReqHeight; /* default is 0,0 */
struct ViNCExtMap vpf_Keyboard; /* keyboard definition */
/* More here... DO NOT ALLOCATE YOURSELF, USE THE vnc.library FUNCTIONS
for handling or extracting the strings */
};
/* Macros to extract the strings from this structure. Uhm, it's
definitely easier to use the library functions Prefs2List and
List2Prefs. */
#define VPF_FIRSTMACRO(prefs) ((char *)(prefs)+(prefs)->vpf_MacroOffset)
/* How to get the first macro */
#define VPF_FIRSTBUTTON(prefs) ((char *)(prefs)+(prefs)->vpf_ButtonOffset)
/* How to